package com.chen.authority.common.constant;

/**
 * 系统常量
 *
 * @author chengy
 * @date 2022/11/18
 */
public class SysConstant {

    /* 返回消息标识 */
    public static final String SUCCESS_MSG = "操作成功";
    public static final String FAIL_MSG = "操作失败";
    public static final String UNAUTHORIZED_MSG = "暂未登录或token已过期";
    public static final String FORBIDDEN_MSG = "没有相关权限";

    /* 操作成功标识 */
    public static final int SUCCESS = 0;

    /* 操作失败标识 */
    public static final int FAIL = 1;

    /*根节点标识 */
    public static final int ROOT = 0;

    /* 启用标识 */
    public static final int ENABLE = 1;

    /* 禁用标识 */
    public static final int DISABLE = 0;

    /* 通知标识 */
    public static final int TONG_ZHI = 0;

    /* 公告标识 */
    public static final int GONG_GAO = 1;

    /* 乐观锁初始版本号 */
    public static final int INIT_VERSION = 1;

    /* 登录用户菜单key */
    public static final String MENU_KEY = "menu_";

    /* 目录标识 */
    public static final String DIRECTORY = "D";

    /* 菜单标识 */
    public static final String MENU = "M";

    /* 按钮标识 */
    public static final String BUTTON = "B";

    /* 显示标识 */
    public static final int SHOW = 1;

    /* 总公司标识 */
    public static final int HEAD_OFFICE = 0;

    /* 分公司标识 */
    public static final int BRANCH_OFFICE = 1;

    /* 部门标识 */
    public static final int DEPARTMENT = 2;

    /* 登录用户key */
    public static final String LOGIN_USER = "login_user";

    /* 图片验证码 */
    public static final String IMAGE_CAPTCHA = "image_captcha";

    /* 邮箱验证码 */
    public static final String EMAIL_CAPTCHA = "email_captcha";

    /* 通用验证码 */
    public static final String COMMON_CAPTCHA = "1111";

    /* 默认密码 */
    public static final String DEFAULT_PASSWORD = "123456";

    /* 登录token标识 */
    public static final String LOGIN_TOKEN_KEY = "Authorization:login:token:";

}